<?php

namespace App\Http\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Http\Models\Terminal
 *
 * @property int $id 航站楼ID
 * @property string|null $name 航站楼名称
 * @property string|null $airport_id 机场ID
 * @method static \Illuminate\Database\Eloquent\Builder|Terminal newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Terminal newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Terminal query()
 * @method static \Illuminate\Database\Eloquent\Builder|Terminal whereAirportId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Terminal whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Terminal whereName($value)
 * @mixin \Eloquent
 */
class Terminal extends Model
{
    //
	public $timestamps = false;
	protected $fillable = ['id', 'name', 'airport_id'];

	public function airports()
	{
		return $this->belongsToMany('App\Http\Models\Airport', 'airport_id');
	}
}
